//
//  CocoaEmetteurSonore.m
//  Metronome
//
//  Created by Pierre DUCHÊNE on 04/11/09.
//  Copyright 2009 GreenTeam. All rights reserved.
//

#import "CocoaEmetteurSonore.h"


@implementation CocoaEmetteurSonore

- (id)init{
    self = [super init];
    if (self) {
        clic = [[NSSound soundNamed:@"Submarine"] retain];
		[clic setVolume:1.0];
		[clic setLoops:NO];
		[clic setCurrentTime:0];
    }
    return self;
}
- (void)dealloc
{
	[clic release];
	[super dealloc];
}

- (void)emettreClic
{
	[clic setCurrentTime:0];
	[clic play];
}

@end
